import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { AccountApplyVo, AccountApplyForm, AccountApplyQuery } from './types';

//apply列表
export const getListApply = (query: AccountApplyQuery): AxiosPromise<AccountApplyVo[]> => {
  return request({
    url: '/apply/list',
    method: 'get',
    params: query
  });
};

//删除apply
export const removeApply = (id: string | number | Array<string | number>) => {
  return request({
    url: '/apply/' + id,
    method: 'delete'
  });
};
